package com.ds.robot.assistant.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jetbrains.annotations.NotNull;

/**
 * 作用：
 *
 * @author WeiShaoying
 * 
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class YxStatusBug implements Comparable<YxStatusBug> {

    /**
     * 缺陷状态
     */
    private String status;

    /**
     * 缺陷数量
     */
    private Integer bugCount;

    @Override
    public int compareTo(@NotNull YxStatusBug o) {
        return Integer.compare(this.bugCount, o.bugCount);
    }
}
